#pragma once

#include <pthread.h>
#include <signal.h>

#include <list>
#include <string>

#define WORK_THREAD_NUM 5

class Reactor {
 public:
  static Reactor* Instance() {
    pthread_once(&m_once, InitInstance);
    return instance_;
  }
  static void InitInstance() { instance_ = new Reactor(); }

  ~Reactor(void);


  bool Init(const char* ip,short nport);

  void * MainLoop();

  
}